package com.tianpengtech.common.model.feedback;

import com.tianpengtech.common.model.AbstractBaseModel;

/**
 * 实体类名-反馈表 fair_feedback
 *
 * @since Sat Jun 10 11:13:16 HKT 2017
 */
public class FeedBack extends AbstractBaseModel<FeedBack> {

	/**
	 *
	 */
	private static final long serialVersionUID = 1L;
	public static final FeedBack dao = new FeedBack();

	public static final String ID = "id"; //
	public static final String CONTACT = "contact"; // 联系方式
	public static final String USER = "user"; // 提交内容
	public static final String STATUS = "status"; // 状态
	public static final String CONTENT = "content"; // 内容
	public static final String DELETETAG = "deletetag"; //删除标志位

	
	
	public static final int STATUS_APPROVING=1;//等待处理
	public static final int STATUS_SUCCESS=2;//处理成功
	
	public static final int DELETE_STATUS_YES=1;
	public static final int DELETE_STATUS_NO=0;
	
	
	public String status(){
		String result="";
		if(getInt(STATUS)==STATUS_APPROVING){
			result="等待处理";
		}else if(getInt(STATUS)==STATUS_SUCCESS){
			result="处理成功";
		}else{
			result="未知状态";
		}
		return result;
	}
	
	@Override
	public String tableName() {
		return "fair_feedback";
	}

}